<%@page import="com.service.impl.AdminserviceImpl"%>
<%@page import="com.service.impl.Adminservice"%>
<%@page import="com.entity.Admin"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>

<body>
<% 
String uid=request.getParameter("username");
String pwd=request.getParameter("password");

Admin admin=new Admin();
Adminservice service=new AdminserviceImpl();
admin.setUsername(uid);
admin.setPassword(pwd);
 boolean res=service.login(admin);
 if(res)
 {
	 out.print("login ok");
 }
 else
 {
	 out.print("login not ok");
 }
 %>
</body>
</html>